Skip to content

feat: Support sourcing database connection details from Kubernetes Secrets#853

Closed
ragutsky wants to merge 2 commits intotemporalio:mainfrom
ragutsky:feat/conn-from-secrets
Closed

feat: Support sourcing database connection details from Kubernetes Secrets#853
ragutsky wants to merge 2 commits intotemporalio:mainfrom
ragutsky:feat/conn-from-secrets

Conversation

@ragutsky
Copy link
Copy Markdown
Contributor

@ragutsky ragutsky commented Feb 22, 2026

What was changed

Added support for sourcing database connection details (host, port, user, database) from Kubernetes Secrets via a new existingSecretKeys configuration option. This complements the existing existingSecret parameter which previously only supported passwords.

Changes:

  • Added existingSecretKeys field to allow mapping Secret keys to connection parameters
  • Updated Helm templates to reference Secret values for host, port, user, and database when existingSecretKeys is configured
  • Maintained backward compatibility - existing configurations without existingSecretKeys continue to work as before
  • Connection details are now sourced from the Kubernetes Secret instead of being hardcoded in values.yaml

Why?

This addresses the feature request for comprehensive Secret-based configuration management beyond just passwords.

Checklist

  1. Closes <>

  2. How was this tested:
    Added existing_secret_keys_test.go to ensure new values are compatible with existing ones.

  3. Any docs updates needed?

Added docs to the following values files:

  • charts/temporal/values/values.postgresql.yaml
  • charts/temporal/values.yaml

@ragutsky ragutsky requested a review from a team as a code owner February 22, 2026 19:11
@ragutsky ragutsky closed this Feb 22, 2026
@ragutsky ragutsky deleted the feat/conn-from-secrets branch February 23, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant